<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>学生主页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f4f4f4;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ddd;
        }
        .welcome {
            font-size: 24px;
            color: #333;
        }
        .logout {
            padding: 8px 15px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
        }
        .logout:hover {
            background-color: #c82333;
        }
        .info-section {
            margin-bottom: 20px;
        }
        .info-section h2 {
            color: #333;
            margin-bottom: 10px;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        .info-item {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 4px;
        }
        .info-item label {
            font-weight: bold;
            color: #666;
        }
        .info-item p {
            margin: 5px 0;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="welcome">欢迎，${student.name}</div>
            <a href="../logout" class="logout">退出登录</a>
        </div>
        
        <div class="info-section">
            <h2>个人信息</h2>
            <div class="info-grid">
                <div class="info-item">
                    <label>学号：</label>
                    <p>${student.studentNumber}</p>
                </div>
                <div class="info-item">
                    <label>姓名：</label>
                    <p>${student.name}</p>
                </div>
                <div class="info-item">
                    <label>性别：</label>
                    <p>${student.gender}</p>
                </div>
                <div class="info-item">
                    <label>班级：</label>
                    <p>${student.className}</p>
                </div>
                <div class="info-item">
                    <label>邮箱：</label>
                    <p>${student.email}</p>
                </div>
                <div class="info-item">
                    <label>手机号：</label>
                    <p>${student.phone}</p>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 